package com.byd.model;

import java.io.File;
import android.content.Context;
import com.byd.application.MyApplication;

public class Path {
	public static String CACHE;
	public static String LOG;

	public static void init() {
		final Context context = MyApplication.getInstance();
		final String path = context.getExternalCacheDir() + File.separator;
		CACHE = path + "cache";
		LOG = path + "log";
		File dir = new File(CACHE);
		if(!dir.exists()) {
			dir.mkdir();
		}
		dir = new File(LOG);
		if(!dir.exists()) {
			dir.mkdir();
		}
	}
}
